﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Drawing;

namespace MMDemo
{
    class PublicDataClass
    {
        public static int functionflag = 1;//当前所演示功能的标志量
        public static int languageflag = 1;//当前演示的语言标志
        
        public static bool IsSingleStep = false;//是否是单步执行

        public static string InitData;//保存初始化窗口中的数据
        public static int LocateData = 1;//保存定位窗口中的数据
        public static string InsertData;//保存插入窗口中的数据

        public static String Imagepath = System.Windows.Forms.Application.StartupPath;
        public static Bitmap DemoPicture = (Bitmap)Image.FromFile(Imagepath + "/Resources/picture.jpg");

        public static float scale = 1;//全局速度控制的比率参数
        public static bool IsOpenBackMusic = false;
        public static bool IsOpenSound = false;

        public static string explainurl = "";
        public static Delegate DChnageMenu = null;

        public static bool IsSearchForIndex = true;
        public static string SearchData = "";

        /// <summary>
        /// 是否初始化数据(用于初始窗口关闭按钮时不初始化)
        /// </summary>
        public static bool IsInit = true;
    }
}
